import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
import * as path from 'path'
import {resolve} from "path";
export default defineConfig({
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    port: 80,
    open: true
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    }
  },
  build: {
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'index.html'),
        nested: resolve(__dirname, 'user.html'),
        card: resolve(__dirname, 'cardMessage.html'),
        backManage: resolve(__dirname, 'backManage.html'),
      },
    },
  },
})
